raar.external
Class RASensor_AgentIsExternal

java.lang.Object
  extended by raar.agent.process.RAProcess
      extended by raar.agent.process.sensor.RASensor
          extended by raar.external.RASensor_AgentIsExternal
All Implemented Interfaces:
java.io.Serializable, RAAgentDependentProcess, RASensorUserSelectable, RASensorAllowedInExternal

public class RASensor_AgentIsExternal
extends RASensor
implements RASensorAllowedInExternal, RASensorUserSelectable

A sensor that signals whether the agent is external or simulated.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class raar.agent.process.sensor.RASensor
agent, output, outputName
 
Fields inherited from class raar.agent.process.RAProcess
hasRun, inregister, outregister, register, sourceCode, statement
 
Fields inherited from interface raar.agent.process.RAAgentDependentProcess
NO_AGENT_DEFINED
 
Constructor Summary
RASensor_AgentIsExternal()
          Default constructor.
RASensor_AgentIsExternal(RAAgent agent)
          Construct.
 
Method Summary
 java.lang.String explain()
          Give a String that explains what the sensor does.
 void run()
          Implemented run method, from the super class.
 void signalExternal(boolean signalExternal)
          Signal external (true) or simulator (false)?
 java.lang.String toString()
          Sensor string representation.
 
Methods inherited from class raar.agent.process.sensor.RASensor
acceptsInput, dumpRegisters, execute, get, getAgent, getColor, getDataType, getInputNames, getInputObjects, getOutputNames, getOutputObjects, getSensorValue, isSpecial, removeReferenceToAgent, set, setAgent, setOutput, setReferenceToAgent, setSourceCode, suppliesOutput
 
Methods inherited from class raar.agent.process.RAProcess
clone, getProcessName, getSourceCode, reset, setProcessName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RASensor_AgentIsExternal

public RASensor_AgentIsExternal()
Default constructor.


RASensor_AgentIsExternal

public RASensor_AgentIsExternal(RAAgent agent)
Construct.

Method Detail

signalExternal

public void signalExternal(boolean signalExternal)
Signal external (true) or simulator (false)?


run

public void run()
         throws RAException
Implemented run method, from the super class.

Specified by:
run in class RASensor
Throws:
RAException

toString

public java.lang.String toString()
Sensor string representation.

Specified by:
toString in class RASensor

explain

public java.lang.String explain()
Give a String that explains what the sensor does.

Specified by:
explain in class RASensor